<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>电梯参数查询管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function () {

        });

        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<form:form id="searchForm" modelAttribute="deviceParameters" action="${pageContext.request.contextPath}/f/sydwfront/deviceList" method="post" class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>

    <div class="container-fluid">
        <div class="row">
            <div class="control-label col-xs-12">
                <c:if test="${fns:getUser().admin}">
                    <label>维保单位代码：</label>
                    <form:input path="wbdwdm" htmlEscape="false" maxlength="20" class="form-control input-sm input-medium"/>
                    <label>维保单位名称：</label>
                    <form:input path="wbdwmc" htmlEscape="false" maxlength="100" class="form-control input-sm input-medium"/>
                </c:if>

                <label>设备注册代码：</label>
                <form:input path="sbzcdm" htmlEscape="false" maxlength="21" class="form-control input-sm input-medium"/>

                <label>设备品种名称：</label>
                <form:input path="sbpzmc" htmlEscape="false" maxlength="50" class="form-control input-sm input-medium"/>

                <label>合同号：</label>
                <form:input path="contractNo" htmlEscape="false" maxlength="50" class="form-control input-sm input-medium"/>

                <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
            </div>
        </div>
    </div>
</form:form>
<sys:message content="${message}"/>
<form:form id="selectDeviceForm" modelAttribute="deviceParameters" action="${ctx}/elmt/deviceParameters/selectDevice" method="post" class="breadcrumb form-search">
    <table id="contentTable" class="table table-striped table-bordered table-condensed">
        <thead>
        <tr>
            <th>设备注册代码</th>
            <th>使用单位名称</th>
            <th>内部编号</th>
            <th>安全管理人员</th>
            <th>手机</th>
            <th>设备使用地点</th>
            <th>设备品种名称</th>
            <th>维保单位名称</th>
            <c:if test="${parentIdCach eq '78' or empty parentIdCach}">
                <th>操作</th>
            </c:if>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${page.list}" var="deviceParameters">
            <tr>
                <td>
                        ${deviceParameters.sbzcdm}
                </td>
                <td>
                        ${deviceParameters.sydwmc}
                </td>
                <td>
                        ${deviceParameters.dwnbbh}
                </td>
                <td>
                        ${deviceParameters.aqglry}
                </td>
                <td>
                        ${deviceParameters.sj}
                </td>
                <td>
                        ${deviceParameters.sbsydd}
                </td>
                <td>
                        ${deviceParameters.sbpzmc}
                </td>
                <td>
                        ${deviceParameters.wbdwmc}
                </td>
                <td>
                    <a href="${pageContext.request.contextPath}/f/sydwfront/deviceDetail?tzsbbh=${deviceParameters.tzsbbh}&sbzcdm=${deviceParameters.sbzcdm}">详情</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</form:form>
<div style="text-align: center;">
    <div class="pagination">${page}</div>
</div>
</body>
</html>